package cn.xfdzx.android.apps.shop.contract;

import cn.xfdzx.android.apps.shop.base.BaseView;
import cn.xfdzx.android.apps.shop.bean.BaseObjectBean;
import cn.xfdzx.android.apps.shop.bean.BuyOftenGoodsBeen;
import cn.xfdzx.android.apps.shop.bean.GetJieguoBeen;
import cn.xfdzx.android.apps.shop.bean.PosterBeen;
import cn.xfdzx.android.apps.shop.bean.UserInfoBean;
import io.reactivex.Flowable;


/**
 * @author azheng
 * @date 2018/6/4.
 * Description：
 */

public interface MyInterestGoodContract {
    interface Model {
        Flowable<BuyOftenGoodsBeen> myInterestGood(String index_status,String page, String limit);

        Flowable<UserInfoBean> getUserinfo(String sales_model);
        Flowable<PosterBeen> getPoster( );
        Flowable<GetJieguoBeen> getjieguo();

    }

    interface View extends BaseView {
        @Override
        void showLoading();

        @Override
        void hideLoading();

        @Override
        void onError(Throwable throwable);

        void onMyInterestGoodSuccess(BuyOftenGoodsBeen bean);
        void onPosterSuccess(PosterBeen bean);
        /**
         * 刷新完成
         */
        void finishRefresh();

        /**
         * 加载完成
         */
        void finishLoadMore();

        void getUserInfoSuccess(UserInfoBean bean);
        void onJieGuo(GetJieguoBeen been);

    }

    interface Presenter {
        /**
         *
         */
        void myInterestGood(boolean isRefresh,boolean isLoading,String index_status,String page, String limit);

        void getUserinfo(String sales_model);
        void getPoster( );
        void forJieGuo();

    }
}
